#######################################################################
# Makefile for MarvieAV SD Card Core Driver (SDD-CORE)
#
# Copyright (c) 2005 by Matsushita Electric Industrial Co., Ltd.
# All rights reserved.
#######################################################################

# Comment/uncomment the following line to disable/enable debugging
DEBUG = n

# Add your debugging flag (or not) to CFLAGS
ifeq ($(DEBUG),y)
  DEBFLAGS  = -O -g # "-O" is needed to expand inlines
  DEBFLAGS += -DEXPORT_SYMTAB

#--------------------------------------------------
# fobOtO
#--------------------------------------------------
# DEBFLAGS += -DSDIF_CS_DEAL_SIGNAL
  DEBFLAGS += -DSDIF_CS_DEBUG         # fobOo
#  DEBFLAGS += -DSDIF_CS_FORCE_DBGOUT
  DEBFLAGS += -DSDIF_CS_HEXDUMP       # _v
# DEBFLAGS += -DSDIF_CS_ERROR         # ُneXg
# DEBFLAGS += -DSDIF_CS_TIME          # ԌveXg
else
  DEBFLAGS = -O2
# DEBFLAGS += -DSDIF_CS_TIME          # ԌveXg
endif

#--------------------------------------------------
# KiᔽJ[hiSD PHY Ver1.0 High CapacityjΉ
#--------------------------------------------------
# DEBFLAGS += -DSDIF_CS_SUPPORT_SDV10_HC #

#--------------------------------------------------
# IvV
#--------------------------------------------------
#DEBFLAGS += -DSDIF_CS_USE_GDMA       # Use GDMA
#DEBFLAGS += -DSDIF_CS_NOUSE_CHK_SCLKDIVE	# Not Use Check SCLKDIVE


### Linux2.6 ? : YES ###
ifeq ($(PATCHLEVEL),6)

EXTRA_CFLAGS += -DLINUX_26
EXTRA_CFLAGS += $(DEBFLAGS)
EXTRA_CFLAGS += -I./drivers/sd_cs/include

sdmc_sdpnp-objs			:=\
						sdds_ioctl.o \
						sdds_main.o


sdmc_sdpnp-objs += \
		cs_api.o \
		sd_ioctl.o


obj-$(CONFIG_SDMC_SDPNP)	:= sdmc_sdpnp.o


### Linux2.6 ? : NO  ###
else


### Linux2.6 ? : END  ###
endif

